﻿<!--
// This source is subject to Microsoft Public License (Ms-PL).
// Please see http://taskcardcreator.codeplex.com for details.
// All other rights reserved.
-->
<ribbon:RibbonWindow x:Class="TaskCardCreator.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ribbon="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
        Title="Task Card Creator 2010" Icon="Resources\TaskCardCreator.ico" Height="700" Width="500" ResizeMode="CanResize">
  <Grid>
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto" />
      <RowDefinition Height="*" />
    </Grid.RowDefinitions>

    <ribbon:Ribbon x:Name="Ribbon" Grid.Row="0">
      <ribbon:Ribbon.HelpPaneContent>
        <StackPanel Orientation="Horizontal">
          <ribbon:RibbonButton SmallImageSource="Resources\Help.png" Click="HelpButton_Click" ToolTipTitle="Help" ToolTipDescription="I need help!" KeyTipService.KeyTip="E"/>
        </StackPanel>
      </ribbon:Ribbon.HelpPaneContent>

      <ribbon:Ribbon.ApplicationMenu>
        <ribbon:RibbonApplicationMenu KeyTipService.KeyTip="F" SmallImageSource="Resources\FileIcon.png">
          <ribbon:RibbonApplicationMenuItem Header="E_xit" ImageSource="Resources\Exit.png" Click="ExitButton_Click"/>
        </ribbon:RibbonApplicationMenu>
      </ribbon:Ribbon.ApplicationMenu>

      <ribbon:RibbonTab x:Name="HomeTab" Header="Home" KeyTipService.KeyTip="H">
        <ribbon:RibbonGroup Header="Task Card">
          <ribbon:RibbonButton Label="TFS 2010 Team Project" 
                               Click="selectProjectButton_Click" LargeImageSource="Resources/SelectProject.png" KeyTipService.KeyTip="T"
                               ToolTipTitle="Select TFS 2010 Team Project"
                               ToolTipDescription="Allows you to select Team Foundation Server 2010 Team Project. After selection you can create task cards."                               
                               ToolTipImageSource="Resources\TeamFoundationServer2010ToolTip.png"
                               />
          <ribbon:RibbonButton Name="ReportButton" IsEnabled="False" Label="Create Task Cards" 
                               Click="generateReport_Click" LargeImageSource="Resources/CreateCards.png" KeyTipService.KeyTip="N"
                               ToolTipTitle="Create Task Cards"
                               ToolTipDescription="Allows you to configure and create task cards. After the task cards has been created you can print the task cards."                               
                               ToolTipImageSource="Resources\TaskCardPageToolTip.png"/>
        </ribbon:RibbonGroup>
        <ribbon:RibbonGroup Header="@" SmallImageSource="Resources\GoTo.png">
          <ribbon:RibbonButton SmallImageSource="Resources\GoTo.png" Label="Visit Web-site" 
                               Click="GoToWebSiteButton_Click" KeyTipService.KeyTip="W"
                               ToolTipTitle="Codeplex project site"
                               ToolTipDescription="Allows you to go to the Codeplex project site"/>
          <ribbon:RibbonButton SmallImageSource="Resources\GoTo.png" 
                               Label="Check for Updates" Click="CheckForUpdatesButton_Click" KeyTipService.KeyTip="C"
                               ToolTipTitle="Check for updates"
                               ToolTipDescription="Allows you to check for a newer version"/>
          <ribbon:RibbonButton SmallImageSource="Resources\GoTo.png" Label="Report a Bug" Click="SubmitBugButton_Click" 
                               KeyTipService.KeyTip="B"
                               ToolTipTitle="Found a bug?"
                               ToolTipDescription="Allows you to submit a bug"/>
        </ribbon:RibbonGroup>
      </ribbon:RibbonTab>
      <ribbon:RibbonTab x:Name="SettingsTab" Header="Settings" KeyTipService.KeyTip="S">
        <ribbon:RibbonGroup Header="Quality">
          <ribbon:RibbonCheckBox Name="XpsCompression" Label="XPS Compression" SmallImageSource="Resources\QualityIcon.png" 
                                 IsChecked="True" KeyTipService.KeyTip="C" 
                                 ToolTipTitle="XPS Setting (Advanced)" 
                                 ToolTipDescription="Allows you to enable or disable XPS compression. Normally you should not change this setting."></ribbon:RibbonCheckBox>
        </ribbon:RibbonGroup>
      </ribbon:RibbonTab>

      <ribbon:RibbonTab Name="TaskCardTab"  Header="Print" ContextualTabGroupHeader="Report" KeyTipService.KeyTip="P">
        <ribbon:RibbonGroup Header="Task Cards">
          <ribbon:RibbonButton LargeImageSource="Resources\Printer.png" Label="Print" Click="PrintButton_Click" 
                               KeyTipService.KeyTip="P"
                               ToolTipTitle="Print"
                               ToolTipDescription="Send report to a printer"/>
        </ribbon:RibbonGroup>
        <ribbon:RibbonGroup Header="Zoom">
          <ribbon:RibbonButton LargeImageSource="Resources\Plus.png" Label="Zoom in" Click="ZoomInButton_Click" 
                               KeyTipService.KeyTip="I"
                               ToolTipTitle="Zoom in"
                               ToolTipDescription="Increase the size of the content"/>
          <ribbon:RibbonButton LargeImageSource="Resources\Minus.png" Label="Zoom out" Click="ZoomOutButton_Click" 
                               KeyTipService.KeyTip="O"
                               ToolTipTitle="Zoom out"
                               ToolTipDescription="Decrease the size of the content"/>
        </ribbon:RibbonGroup>

      </ribbon:RibbonTab>
      <ribbon:Ribbon.ContextualTabGroups>
        <ribbon:RibbonContextualTabGroup Name="TaskCardContextualTab" Header="Report" Background="Green" />
      </ribbon:Ribbon.ContextualTabGroups>


    </ribbon:Ribbon>

    <TabControl Grid.Row="1" Name="tabControl" SelectionChanged="TabSelectionChanged">
      <TabItem Name="IntroTab" Header="Introduction">
        <FlowDocumentPageViewer>
          <StaticResource ResourceKey="IntroductionDocument"/>
        </FlowDocumentPageViewer>
      </TabItem>

    </TabControl>
  </Grid>
</ribbon:RibbonWindow>